package designpattern.Facade;

/**
 * @author cyt
 * @create 2020-08-13 11:21
 */
public class Facade {

    public static Company openCompany(String name) {
        Company company = new Company(name);
        company.setOpenAccount(Register.openAccount(company.getId()));
        company.setTax(Register.applyTaxCode(company.getId()));
        return  company;
    }
}
